<template>
	<div class="businesind">
		<div class="comn-indp">
			<img src="../../img-user/92491aab3e36a6c5ab5201d4d5c33c89@3x.png" />
			<p>{{dpnames}}</p>
			<router-link :to="{path:'/business/shopindex',query:{'store':store_id}}">
				<span class="comn-dp">进入店铺&nbsp;></span>
			</router-link>
			<p class="comn-ms">描述相符：<span v-text="msxf"></span>  服务态度：<span v-text="fwtd"></span> 发货速度：<span v-text="fhsd"></span></p>
		</div>
		<div class="ddtj-top" style="background-color: #FFFFFF;overflow: hidden;">
			<div class="ddtj-btn4" @click="jr()">今日</div>
			<div class="ddtj-btn1">
				<span>今日</span>
			</div>
			
			<div class="ddtj-btn2">
				<span>累计</span>
			</div>
			<div class="ddtj-btn3" @click="lj()">累计</div>
			<div style="border-bottom:#EEEEEE solid 1px;margin-top: 0.24rem;"></div>
			<div class="ddtj-ddsl">
				<span>订单数(件)</span>
				<span class="ddtj-jr" v-text="order_today">10</span><br />
				<span class="ddtj-jr1" style="display: none;">11</span>
				
			</div>
			<div class="ddtj-ddje">
				<span>交易额(元)</span>
				<span class="ddtj-jr" v-text="'￥'+money_today">10</span><br />
				<span class="ddtj-jr1" v-text="'￥'+money_amount" style="display: none;">￥999.99</span>
			</div>
		</div>
		
		
		
		<!--<div class="busine-shopindex-top">
			<h3 class="busine-shopindex-title">
				<i><img src="../../img-shopping/icon_dianpu@3x.png"/></i>
				<span v-text="store_name"></span>
				<router-link :to="{path:'/business/shopindex',query:{'store':store_id}}">
					进入店铺
					<i><img src="../../img-order/icon_next@3x.png"/></i>
				</router-link>
			</h3>
			<ul class="shopindex-jiugong">
				<li>
					<div>
						<p>累计订单</p>
						<span v-text="order_amount">1000</span>
					</div>
					<div>
						<p>累计交易额</p>
						<span v-text="'￥'+money_amount">￥999.99</span>
					</div>
				</li>
				<li>
					<div>
						<p>今日订单</p>
						<span v-text="order_today">1000</span>
					</div>
					<div>
						<p>今日交易额</p>
						<span v-text="'￥'+money_today">￥999.99</span>
					</div>
				</li>
			</ul>
		</div>
			<ul class="busine-shopindex-fenshu">
				<li>
					<span>描述相符 ：</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png" v-if="msfen<1"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png" v-if="msfen<2"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png" v-if="msfen<3"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png" v-if="msfen<4"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png" v-if="msfen<5"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
				</li>
				<li>
					<span>服务态度 ：</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png" v-if="fwfen<1"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png" v-if="fwfen<2"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png"  v-if="fwfen<3"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png"  v-if="fwfen<4"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png"  v-if="fwfen<5"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
				</li>
				<li>
					<span>发货速度 ：</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png" v-if="fhfen<1"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png" v-if="fhfen<2"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png" v-if="fhfen<3"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png" v-if="fhfen<4"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
					<span>
						<img src="../../img-order/icon_shopping@3x.png" v-if="fhfen<5"/>
						<img src="../../img-order/icon_shoppin2@3x.png" v-else/>
					</span>
				</li>
			</ul>-->
		<ul class="busine-shopindex-listnav">
			<li>
				<router-link to="/business/shopgl">
					<i><img src="../../img-user/icon_spgl1@3x.png"/></i>
					<span>商品管理</span>
					<img src="../../img-order/icon_next@3x.png"/>
				</router-link>
			</li>
			<li>
				<router-link to="/business/ordergl">
					<i><img src="../../img-user/icon_dd@3x.png"/></i>
					<span>订单管理</span>
					<img src="../../img-order/icon_next@3x.png"/>
				</router-link>
			</li>
			<li>
				<router-link to="/business/busisz">
					<i><img src="../../img-user/icon_sj1@3x.png"/></i>
					<span>店铺设置</span>
					<img src="../../img-order/icon_next@3x.png"/>
				</router-link>
			</li>
			<li>
				<a href="tel:057189173797">
					<i><img src="../../img-user/icon_lxkf@3x.png"/></i>
					<span>平台客服</span>
					<img src="../../img-order/icon_next@3x.png"/>
				</a>
			</li>
			<li>
				<a href="">
					<i><img src="../../img-user/icon_spgl1@3x.png"/></i>
					<span>特色馆管理</span>
					<img src="../../img-order/icon_next@3x.png"/>
				</a>
			</li>
		</ul>
	</div>
</template>

<script>
	import shopindex from "@/css/shopindex.css"
	export default{
		name:'businesind',
		data () {
			return{
				user:0,
				msfen:0,
				fwfen:0,
				fhfen:0,
				store_id:0,
				money_amount:0,
				money_today:0,
				order_amount:0,
				order_today:0,
				store_name:'',
				msxf:'',
				fwtd:'',
				fhsd:'',
				dpnames:''
			}
		},
		created:function(){
			this.user=localStorage.getItem("nt_user");
		},
		methods:{
			budineajax:function(){
				var self=this;
				$.ajax({
					type:"get",
					url:furl+"index.php?app=ajax_seller_member&act=seller_member",
					data:{"token":self.user},
					dataType:"json",
					success:function(res){
						if(res.done){
							self.msfen=res.retval.evaluation.evaluation_desc;
							self.fwfen=res.retval.evaluation.evaluation_service;
							self.fhfen=res.retval.evaluation.evaluation_speed;
							self.money_amount=res.retval.order.money_amount;
							self.money_today=res.retval.order.money_today;
							self.order_amount=res.retval.order.order_amount;
							self.order_today=res.retval.order.order_today;
							self.store_id=res.retval.store_id;
							self.store_name=res.retval.store_name;
							self.msxf=res.retval.evaluation.evaluation_desc;
							self.fhsd=res.retval.evaluation.evaluation_service;
							self.fwtd=res.retval.evaluation.evaluation_speed;
							self.dpnames = res.retval.store_name;
						}
					}
				});
			},
			lj:function(){
				
				$(".ddtj-btn2").show();
				$(".ddtj-btn1").hide();
				$(".ddtj-btn4").show();
				$(".ddtj-btn3").hide();
				$(".ddtj-jr1").show()
				$(".ddtj-jr").hide()
				
			},
			jr:function(){
				
				$(".ddtj-btn2").hide();
				$(".ddtj-btn1").show();
				$(".ddtj-btn4").hide();
				$(".ddtj-btn3").show();
				$(".ddtj-jr1").hide()
				$(".ddtj-jr").show()
			}
			
		},
		mounted:function(){
			this.budineajax();
		}
	}
</script>

<style>
</style>